/*================================================================
*   Copyright (C) 2020 Guangzhou Firefly Ltd. All rights reserved.
*   
*   文件名称：encrypted_str.c
*   创 建 者：luhuadong
*   创建日期：2020年10月10日
*   描    述：字符串加密：字符串反转再减一
*
================================================================*/


#include <stdio.h>
#include <string.h>

#define WITHOUT_TMP

char *str_plus(char *str, int n)
{
	int len = strlen(str);

	for (int i=0; i<len; i++)
	{
		if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z'))
		{
			if (str[i] == 'Z')
			{
				str[i] = 'A';
			}
			else if (str[i] == 'z')
			{
				str[i] = 'a';
			}
			else
			{
				str[i] = str[i] + 1;
			}
		}
	}

	return str;
}


int main(void)
{
	char str[128];
#ifndef WITHOUT_TMP
	char tmp;
#endif

	scanf("%s", str);

	int i = 0;
	int j = strlen(str) - 1;

	while(j > i) {
	
#ifdef WITHOUT_TMP
		str[i] = str[i] + str[j];
		str[j] = str[i] - str[j];
		str[i] = str[i] - str[j];
#else
		tmp = str[i];
		str[i] = str[j];
		str[j] = tmp;
#endif

		i++;
		j--;
	}

	printf("%s\n", str_plus(str, 1));

	return 0;
}
